#!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 题目：学习使用auto定义变量的用法。


def f1():
    num = 2

    def autofunc():
        num = 1
        print('internal block num = %d' % num)
        num += 1
    for i in range(3):
        print('The num = %d' % num)
        num += 1
        autofunc()


f = f1
if __name__ == "__main__":
    f()
